package gr.takeda.rhythmguitar.dialogs;

import gr.takeda.rhythmguitar.models.Chord;

import java.util.ArrayList;
import java.util.List;

public class ChordsAddEvent {

	private List<Chord> configuredChords;

	public ChordsAddEvent(List<Chord> chords) {
		if (chords == null)
			throw new IllegalArgumentException();

		setConfiguredChords(chords);
	}

	public ChordsAddEvent(Chord chord) {

		if (chord == null)
			throw new IllegalArgumentException();

		setConfiguredChords(new ArrayList<Chord>());
		getConfiguredChords().add(chord);
	}

	public List<Chord> getConfiguredChords() {
		return configuredChords;
	}

	public void setConfiguredChords(List<Chord> configuredChords) {
		this.configuredChords = configuredChords;
	}
}
